<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/luntan/Public/Css/css.css" />
<title>用户管理</title>
</head>

<body>
<div id="content">
	<ul>
	<?php if(is_array($arr)): foreach($arr as $key=>$data): if($data['limit'] != 1): ?><li>
	  		<div class="ct">
				<div class="ct-top" style="margin-bottom:1px;padding-bottom:10px;">
					<h3>用户名:</h3>
					<p class="p1"><?php echo ($data["username"]); ?></p>
					<h3>等&nbsp;&nbsp;&nbsp;级:</h3>
					<p class="p1">
					<?php if($data['exper'] < 500): if($exper < 200): ?>初级用户
							<?php else: ?>
							中级用户<?php endif; ?>
					<?php else: ?>高级用户<?php endif; ?>
					</p>	
					
				</div>
				<div class="ct-top" style="margin-bottom:5px;padding-bottom:10px;">
					<h3>经验值:</h3>
					<p class="p1"><?php echo ($data["exper"]); ?></p>
					<h3>权&nbsp;&nbsp;&nbsp;限:</h3>
					<p class="p1">
					<?php if($data['limit'] == 0): ?>初级权限<?php endif; ?>
					<?php if($data['limit'] == 1): ?>高级权限<?php endif; ?>
					<?php if($data['limit'] == 2): ?>中级权限<?php endif; ?>
					</p>				
				</div>
				
				
				<div class="ct-bt">

				<a href="/luntan/index.php/Home/Admin/delete/uid/<?php echo ($data["id"]); ?>" class="bt">删除</a>
				<?php if($data['status'] != 1): ?><a href="/luntan/index.php/Home/Admin/power?uid=<?php echo ($data["id"]); ?>" class="bt">封号</a>
				<?php else: ?><a href="/luntan/index.php/Home/Admin/delpower?uid=<?php echo ($data["id"]); ?>" class="bt">解封</a><?php endif; ?>
				<a href="/luntan/index.php/Home/Admin/updatelimit?uid=<?php echo ($data["id"]); ?>" class="bt">修改权限</a>
				</div>	

				
			</div>
		</li><?php endif; endforeach; endif; ?>
	<center><?php echo ($show); ?></center>

	</ul>
	
	

</div>

</body>
</html>